@import url('https://fonts.googleapis.com/css?family=Lato:300,300italic');
@import url('https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css');

$cGood: #2eb35a;
$cAlert: #d22c32;
$orange: #ff6b23;
$blue: #54c6fb;

@font-face {
  font-family: 'pixel';
  src: url('../res/pixel.ttf');
}

* {
  user-select: none;
}

html {
  font-size: 11px;
  color: #c1c6cb;
  background-color: #15202e;
}

body {
  padding: 20px 50px;
}

body::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: #110d0d;
}

::-webkit-scrollbar-thumb {
  background: #888;
}

.container {
  display: block;
  max-width: 1024px;
  margin: 0 auto;

  @media screen and (min-width: 1400px) {
    max-width: 1280px;
  }
}

.dashboard {
  &-header {
    display: flex;
    align-items: center;
    font-family: 'Lato', sans-serif;
    text-transform: uppercase;
  }

  &-title {
    flex: 1;
    font-size: 2.5rem;
    // font-family: pixel;
  }

  &-action {
    display: flex;
  }

  &-avatar {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    overflow: hidden;
  }
}

.history {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  white-space: nowrap;
  background-color: rgba(255, 255, 255, 0.1);
  cursor: pointer;

  &-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(26rem, 1fr));
    grid-gap: 2rem;
  }

  &-details {
    flex: 1;
    display: block;
    list-style: none;
    margin: 0;
    padding: 0;

    li {
      display: block;
      font-size: 1.2rem;
      line-height: 1.5;
      color: #7e8794;
    }

    .data {
      display: block;
      margin: -1.7rem 0 0 0;
      padding: 0 1rem 0 0;
      font-weight: 600;
      text-align: right;
      color: #c1c6cb;
    }

    .status {
      color: $cGood;

      &::before {
        content: '';
        display: inline-block;
        width: 0.6rem;
        height: 0.6rem;
        background-color: currentColor;
        border-radius: 50%;
        margin-right: 0.5rem;
        margin-top: -0.2rem;
        vertical-align: middle;
      }
    }

    .bad {
      color: $orange;
    }
  }
}

.context-menu {
  position: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100px;
  height: 8rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 4px;
  white-space: nowrap;
  background-color: rgba($color: #2d3743, $alpha: 0.6);

  &-item {
    flex-grow: 1;
    font-size: 1.5rem;
    text-align: center;
    vertical-align: center;
    line-height: 4rem;
    width: 100%;
    cursor: pointer;
    &:hover {
      background-color: rgba($color: #2d3743, $alpha: 0.8);
    }
  }
}

.handsontable {
  tr td {
    background-color: #15202e00 !important;
    font-size: 2rem;
  }
  tr {
    background-color: #00000000 !important;
  }
}

.handsontable td {
  padding: 5px 10px;
  font-family: pixel;
  text-align: center;
}

.handsontable table {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  white-space: nowrap;
  background-color: rgba(255, 255, 255, 0.1);
}

.htMenu tr td {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.5rem;
  padding: 2px 5px;
}

.htMenu table {
  background-color: #15202e;
}

.wtHider {
  margin: 0 auto;
}

.create-task {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 7.5rem;
  font-size: 1.5rem;
}
